<layout name="layout" />
<script type="text/javascript">
    //全局变量
    var GV = {
        DIMAUB: "{:G::$Cache['siteurl']}",
        FILE: "/index.php",
        REAL_FILE: "{:G::$Cache['siteurl']}/admin.php",
        TPL_COMMON: "__COMMON__",
        JS_ROOT: "__COMMON__/js/",
        TOKEN: ""
    };
</script>
<script src="__COMMON__/js/wind.js"></script>
<div class="user_form_information user_form_informationA">
    <form action="{:U('User/Article/add')}" name="art_add" method="post" enctype="multipart/form-data">
        <div class="li">标  题：<input name='title' type="text" class="txt t435"></div>
        <div class="li">网页内容：<i class="CF00">*</i></div>
        <div class="li">
            <div id='content_tip'></div>
            <textarea id="content" name="info[content]" style="width:95%">{$vo.content}</textarea>
            <script type="text/javascript">
                //编辑器路径定义
                var editorURL = GV.DIMAUB;
            </script>
            <script type="text/javascript"  src="__COMMON__/js/ueditor/editor_config.js"></script>
            <script type="text/javascript"  src="__COMMON__/js/ueditor/editor_all_min.js"></script>
            <script type="text/javascript">
                var editorcontent;
                function flashupload() {
                    alert(123);
                }
                function insertimage() {
                    alert(1);
                }
                UE.commands['attachments'] = {
                    execCommand: function(cmd) {
                        return false;
                        flashupload('flashupload', '附件上传', 'content', ueAttachment, '10,,1,,,0', 'Contents', '0', 'af5e6db9882138218435352a0785ded8');
                    },
                    queryCommandState: function() {
                        return this.highlight ? -1 : 0;
                    }
                };
                var editor_config_content = {
                    textarea: 'content',
                    toolbars: [
                        ['FullScreen', 'Source', '|', 'Undo', 'Redo', '|',
                            'Bold', 'Italic', 'Underline',
                            'Link', '|', 'InsertImage',
                            'SelectAll', 'ClearDoc', 'SearchReplace', 'Print', 'Preview', 'CheckImage', 'Help', 'AutoTypeSet']
                    ],
                    minFrameHeight: 200
                };
                $(function() {
                    editorcontent = new baidu.editor.ui.Editor(editor_config_content);
                    editorcontent.render('content');
                    try {
                        editorcontent.sync();
                    } catch (err) {
                    }
                    ;
                    //增加编辑器验证规则
                });
            </script>
        </div>
        <div class="clear"></div>
        <div class="li but martop10">
            <input type="submit" class="s" value=" ">&nbsp;&nbsp;&nbsp;&nbsp;
<!--            <input type="reset" class="r" value=" ">-->
        </div>
    </form>
</div>